<?php
namespace app\common\model;
use app\common\helper\Obj2Array;
use think\Model;

class JumpAppletModel extends Model{

    protected $table = 'ph_jump_applet';

    public static function appletList() {
        $model = new self();
        $list = $model->field('appid as app_id, path as applet_path, cover_url as applet_image, jump_name')->select();
        if (empty($list)) {
            return [];
        }
        return Obj2Array::resObject2Array($list);
    }

}